#include "widget.h"
#include "ui_widget.h"
#include<QIcon>
#include<QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    //创建 对象
    QIcon icon(":/images.jpg");
    //设置 图标
    ui->pushButton->setIcon(icon);
    //设置 尺寸
    ui->pushButton->setIconSize(QSize(50,50));
}

Widget::~Widget()
{
    delete ui;
}

